﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.exam.ScoreInquiry" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>学员成绩查询</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/course.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript">
    window.onload = function() { document.getElementById("form1").style.display = ""; document.getElementById("dataload").style.display = "none"; }
    $(document).ready(
      function() {
        $("#StartFromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#StartToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      }
    );
      function Search() {
        document.getElementById("form1").action = "?act=s";
        document.getElementById("form1").submit();
      }
      function Export() {
        document.getElementById("form1").action = "/exam/Export2Xls2.aspx";
        document.getElementById("form1").submit();
      }
  </script>
</head>
<body>
<div id="dataload">数据加载中...</div>
  <form id="form1" action="?act=s" method="post" style="display:none;">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;学员成绩查询</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">登录名：</div>
        <div class="fl"><input type="text" id="LoginIDTxt" name="LoginIDTxt" value="<%=loginid %>" maxlength="50" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;姓名：</div>
        <div class="fl"><input type="text" id="UserNameTxt" name="UserNameTxt" value="<%=userName %>" maxlength="100" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;培训机构：</div>
        <div class="fl">
          <% if (areaList != null && areaList.Count > 0) { %>
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">请选择</option>
            <% foreach (DictAreaModel areaModel in areaList) { %>
            <option value="<%=areaModel.ID %>"><%=areaModel.Name%></option>
            <% } %>
          </select>
          <% } %>
        </div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">班级编号：</div>
        <div class="fl"><input type="text" id="ClassCodeTxt" name="ClassCodeTxt" value="<%=classCode %>" maxlength="50" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;认证类别：</div>
        <div class="fl">
          <% if (certificateList != null && certificateList.Count > 0) { %>
          <select id="CertificateSlt" name="CertificateSlt" onchange="GetCourseListWithCourseID(this.value);">
            <option value="-1">请选择认证类别</option>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in certificateList) { %>
              <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <select id="CourseSlt" name="CourseSlt">
            <option value="-1">请选择课程</option>
            </select>
          <% } %>
        </div>
        <div class="fl" style="line-height:23px;">&nbsp;课程类别：</div>
        <div class="fl">
          <select id="CategorySlt" name="CategorySlt" style="*margin-top:2px; _margin-top:2px;">
            <option value="-1">请选择</option>
            <% if (cc_list.Count > 0) { %>
              <% foreach (CourseCategoryModel model in cc_list) { %>
            <option value="<%=model.ID %>"><%=model.Name%></option>
              <% } %>
            <% } %>
          </select>
        </div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">开班时间：</div>
        <div class="fl"><input id="StartFromDateTxt" name="StartFromDateTxt" value="<%=startFromDate %>" />&nbsp;至&nbsp;<input id="StartToDateTxt" name="StartToDateTxt" value="<%=startToDate %>" /></div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">入职时间：</div>
        <div class="fl"><input id="FromDateTxt" name="FromDateTxt" value="<%=fromDate %>" />&nbsp;至&nbsp;<input id="ToDateTxt" name="ToDateTxt" value="<%=toDate %>" /></div>
        <div class="fl">&nbsp;&nbsp;<input type="image" style="width:51px; height:21px;" src="/images/btn/confirm2.gif" onclick="Search();" /></div>
        <div class="fl">&nbsp;&nbsp;<img alt="" src="/images/btn/export.gif" class="cursor" onclick="Export();" /></div>
      </div>
    </div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>
      
    <% if (scoreList != null && scoreList.Count > 0) { %>
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <div class="d_r_n">登录名</div>
          <div class="d_r_n">姓名</div>
          <div class="d_r_g">性别</div>
          <div class="d_r_e">学历</div>
          <%--<div class="d_r_c">课程或认证</div>--%>
          <%--<div class="d_r_s">成绩</div>--%>
          <div class="d_r_oo">操作</div>
        </div>
        
        <% foreach (ShortScoreModel model in scoreList) { %>
        <div class="data_rows">
          <div class="d_r_n"><%=model.LoginID %></div>
          <div class="d_r_n"><%=model.UserName.Trim().Equals("") ? "&nbsp;" : model.UserName%></div>
          <div class="d_r_g"><%=model.Gender ? "男" : "女" %></div>
          <div class="d_r_e"><%=model.Education%></div>
          <%--<div class="d_r_c"><%=model.CourseCertificateName %></div>--%>
          <%--<div class="d_r_s"><%=model.Score %></div>--%>
          <div class="d_r_oo"><a href="/exam/ScoreView.aspx?id=<%=model.UserID %>">查看成绩</a></div>
        </div>
        <% } %>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
    <% } else { %>
    <% } %>
    
    </div>
    <script type="text/javascript">
    <% if (areaid != -1) { %>
       document.getElementById("AreaSlt").value = <%=areaid %>;     
    <% } %>
    <% if (certificateID != -1) { %>
       $("#CertificateSlt").val('<%=certificateID %>');
       GetCourseListWithCourseIDAndSetValue('<%=certificateID %>', '<%=courseID %>');
    <% } %>
    <% if (courseCategoryID != -1) { %>
       document.getElementById("CategorySlt").value = <%=courseCategoryID %>;     
    <% } %>
    </script>
  </form>
</body>
</html>
